﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DxSnap
{
    public partial class PopupSnap : Form
    {
        int counter = 0;

        public PopupSnap(string imgFileName)
        {
            InitializeComponent();

            this.BackgroundImage = System.Drawing.Image.FromFile(imgFileName);
            this.BackgroundImageLayout = ImageLayout.Stretch;
        }

        private void PopupSnap_Load(object sender, EventArgs e)
        {
            this.timer1.Enabled = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            counter++;
            if (counter >= 3)
                this.Close();
        }
    }
}
